package org.example.ai.controller;


import org.springframework.ai.openai.OpenAiChatModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/ds")
@RestController
public class DeepSeekController {
    @Autowired
    OpenAiChatModel deepSeekChatModel;
    @GetMapping("/chat")
    public String chat(String message) {
        return deepSeekChatModel.call(message);
    }

}
